#ifndef TEXTURE_H
#define TEXTURE_H

#include "Color.h"
#include "Matrix.h"

class Texture{
	public :   
		int Bites;       
		unsigned char HeaderFile [0x0E]; 
		unsigned char HeaderBMP [0x29];
		unsigned long taillepalette;

		unsigned long largeur;  
		unsigned long hauteur;

		Color *tabColor;

		Texture();
		int chargerFichier(char *);

		Color getColor (int i, int j) {return tabColor[i*hauteur+j];}
		Color getColorMappingPlanaire (Point &p);
              
};

#endif
